from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from options import options
from login_data import Login

url = r'http://172.16.36.126/upload/'
driver = webdriver.Chrome(options=options)
driver.get(url)

# 注册
driver.find_element(By.LINK_TEXT,'立即注册').click()
driver.find_element(By.ID, 'p0dS30').clear()
driver.find_element(By.ID, 'p0dS30').send_keys('a001')
driver.find_element(By.ID, 'jjQlGz').clear()
driver.find_element(By.ID, 'jjQlGz').send_keys('123456')
driver.find_element(By.ID, 'apeqQ6').clear()
driver.find_element(By.ID, 'apeqQ6').send_keys('123456')
driver.find_element(By.ID, 'jp2PfX').clear()
driver.find_element(By.ID, 'jp2PfX').send_keys('123456@qq.com')
driver.find_element(By.ID, 'registerformsubmit').click()

sleep(3)

# 退出
login.logout()

